package com.uqbar.arkanoid;

import java.awt.Dimension;

import com.uqbar.componentes.Marcador;
import com.uqbar.vainilla.DesktopGameLauncher;
import com.uqbar.vainilla.Game;
import com.uqbar.vainilla.GameScene;

public class Arkanoid extends Game {
	
	private Dimension dimension;

	@Override
	protected void initializeResources() {
		dimension = new Dimension(800, 600);

	}

	@Override
	protected void setUpScenes() {
		GameScene arkanoidScene = buildArkanoidScene();

		this.setCurrentScene(arkanoidScene);
	}

	public GameScene buildArkanoidScene() {
		
		ArkanoidScene escena = new ArkanoidScene();
		
		return escena;
	}
	
	public GameScene buildEndScene(Marcador marcador) {
		return new EndScene(marcador.getMensaje(),200, 250);
	}

	@Override
	public Dimension getDisplaySize() {
		//Dimension d = new Dimension(800, 600);
		return dimension;
	}

	@Override
	public String getTitle() {
		return "Arkanoid";
	}
	
	/*public GameScene buildEndScene(Marcador marcador) {
		return new EndScene(marcador, 300, 300);
	}*/

	public static void main(String[] args){
		new DesktopGameLauncher(new Arkanoid()).launch();
	}

}